From 92b4888a829775ad6f28a5efd0e56a357cf68490 Mon Sep 17 00:00:00 2001 From: tsteven4 <13596209+tsteven4@users.noreply.github.com> Date: Fri, 19 Jul 2024 07:11:59 -0600 Subject: [PATCH] enhance garmin route write for devices using 16 member icon set. (#1298) --- garmin.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/garmin.cc b/garmin.cc index 9ffb56d5c..cea5e6c4d 100644 --- a/garmin.cc +++ b/garmin.cc @@ -937,7 +937,11 @@ GarminFormat::route_waypt_pr(const Waypoint* wpt) rte->lon = wpt->longitude; rte->lat = wpt->latitude; - rte->smbl = gt_find_icon_number_from_desc(wpt->icon_descr, PCX); + if (gps_rte_type == 103) { + rte->smbl = d103_icon_number_from_symbol(wpt->icon_descr); + } else { + rte->smbl = gt_find_icon_number_from_desc(wpt->icon_descr, PCX); + } // map class so unit doesn't duplicate routepoints as a waypoint. rte->wpt_class = 0x80; -- 2.30.2